home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2c | 63 6f 6d 70 2e 6c 61 6e |.lang.c,|comp.lan|
|00000020| 67 2e 63 2b 2b 0a 50 61 | 74 68 3a 20 63 64 66 2e |g.c++.Pa|th: cdf.|
|00000030| 74 6f 72 6f 6e 74 6f 2e | 65 64 75 21 6e 65 77 73 |toronto.|edu!news|
|00000040| 0a 46 72 6f 6d 3a 20 44 | 61 72 72 65 6c 6c 20 47 |.From: D|arrell G|
|00000050| 72 61 69 6e 67 65 72 20 | 3c 61 33 37 38 67 72 61 |rainger |<a378gra|
|00000060| 69 40 63 64 66 2e 74 6f | 72 6f 6e 74 6f 2e 65 64 |i@cdf.to|ronto.ed|
|00000070| 75 3e 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |u>.Subje|ct: Re: |
|00000080| 41 63 63 65 73 73 20 63 | 61 72 72 79 20 66 6c 61 |Access c|arry fla|
|00000090| 67 20 66 72 6f 6d 20 43 | 20 0a 49 6e 2d 52 65 70 |g from C| .In-Rep|
|000000a0| 6c 79 2d 54 6f 3a 20 3c | 33 31 32 39 38 44 32 30 |ly-To: <|31298D20|
|000000b0| 2e 34 31 43 36 40 62 61 | 7a 69 73 2e 6e 6c 3e 20 |.41C6@ba|zis.nl> |
|000000c0| 0a 58 2d 53 65 6e 64 65 | 72 3a 20 61 33 37 38 67 |.X-Sende|r: a378g|
|000000d0| 72 61 69 40 65 64 64 69 | 65 0a 43 6f 6e 74 65 6e |rai@eddi|e.Conten|
|000000e0| 74 2d 54 79 70 65 3a 20 | 54 45 58 54 2f 50 4c 41 |t-Type: |TEXT/PLA|
|000000f0| 49 4e 3b 20 63 68 61 72 | 73 65 74 3d 55 53 2d 41 |IN; char|set=US-A|
|00000100| 53 43 49 49 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |SCII.Mes|sage-ID:|
|00000110| 20 3c 50 69 6e 65 2e 53 | 4f 4c 2e 33 2e 39 30 2e | <Pine.S|OL.3.90.|
|00000120| 39 36 30 32 32 30 31 30 | 35 37 32 33 2e 32 34 39 |96022010|5723.249|
|00000130| 38 31 44 2d 31 30 30 30 | 30 30 40 65 64 64 69 65 |81D-1000|00@eddie|
|00000140| 3e 0a 53 65 6e 64 65 72 | 3a 20 6e 65 77 73 40 63 |>.Sender|: news@c|
|00000150| 64 66 2e 74 6f 72 6f 6e | 74 6f 2e 65 64 75 20 28 |df.toron|to.edu (|
|00000160| 55 73 65 6e 65 74 20 4e | 65 77 73 29 0a 4e 6e 74 |Usenet N|ews).Nnt|
|00000170| 70 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |p-Postin|g-Host: |
|00000180| 65 64 64 69 65 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |eddie.Or|ganizati|
|00000190| 6f 6e 3a 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |on: Univ|ersity o|
|000001a0| 66 20 54 6f 72 6f 6e 74 | 6f 20 43 6f 6d 70 75 74 |f Toront|o Comput|
|000001b0| 69 6e 67 20 44 69 73 63 | 69 70 6c 69 6e 65 73 20 |ing Disc|iplines |
|000001c0| 46 61 63 69 6c 69 74 79 | 0a 52 65 66 65 72 65 6e |Facility|.Referen|
|000001d0| 63 65 73 3a 20 3c 44 6e | 31 43 39 7a 2e 44 47 76 |ces: <Dn|1C9z.DGv|
|000001e0| 2e 30 2e 6e 65 74 40 69 | 6e 64 72 61 2e 63 6f 6d |.0.net@i|ndra.com|
|000001f0| 3e 20 3c 31 39 39 36 46 | 65 62 31 39 32 32 2e 31 |> <1996F|eb1922.1|
|00000200| 37 2e 31 39 2e 38 37 39 | 40 6b 6f 6f 62 65 72 61 |7.19.879|@koobera|
|00000210| 2e 6d 61 74 68 2e 75 69 | 63 2e 65 64 75 3e 20 3c |.math.ui|c.edu> <|
|00000220| 33 31 32 39 38 44 32 30 | 2e 34 31 43 36 40 62 61 |31298D20|.41C6@ba|
|00000230| 7a 69 73 2e 6e 6c 3e 20 | 0a 4d 69 6d 65 2d 56 65 |zis.nl> |.Mime-Ve|
|00000240| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 44 61 74 65 3a |rsion: 1|.0.Date:|
|00000250| 20 54 75 65 2c 20 32 30 | 20 46 65 62 20 31 39 39 | Tue, 20| Feb 199|
|00000260| 36 20 31 36 3a 30 32 3a | 33 34 20 47 4d 54 0a 0a |6 16:02:|34 GMT..|
|00000270| 4f 6e 20 54 75 65 2c 20 | 32 30 20 46 65 62 20 31 |On Tue, |20 Feb 1|
|00000280| 39 39 36 2c 20 46 72 61 | 6e 7a 20 4b 6f 72 6e 74 |996, Fra|nz Kornt|
|00000290| 6e 65 72 20 77 72 6f 74 | 65 3a 0a 0a 3e 20 53 74 |ner wrot|e:..> St|
|000002a0| 65 76 65 20 53 75 6c 6c | 69 76 61 6e 20 3c 73 75 |eve Sull|ivan <su|
|000002b0| 6c 6c 69 76 61 6e 40 69 | 6e 64 72 61 2e 63 6f 6d |llivan@i|ndra.com|
|000002c0| 3e 20 77 72 6f 74 65 3a | 0a 3e 20 3e 20 20 20 20 |> wrote:|.> > |
|000002d0| 69 20 3d 20 6a 20 2b 20 | 6b 3b 0a 3e 20 3e 20 20 |i = j + |k;.> > |
|000002e0| 20 20 69 66 20 28 6f 76 | 65 72 66 6c 6f 77 65 64 | if (ov|erflowed|
|000002f0| 29 20 2e 2e 2e 2e 3b 0a | 3e 20 0a 3e 20 59 65 73 |) ....;.|> .> Yes|
|00000300| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 74 68 | there i|s a meth|
|00000310| 6f 64 2e 20 0a 3e 20 0a | 3e 20 6a 2b 6b 20 77 69 |od. .> .|> j+k wi|
|00000320| 6c 6c 20 6f 76 65 72 66 | 6c 6f 77 20 77 68 65 6e |ll overf|low when|
|00000330| 20 74 68 65 20 72 65 73 | 75 6c 74 20 65 78 63 65 | the res|ult exce|
|00000340| 65 64 73 20 4d 41 58 49 | 4e 54 0a 3e 20 0a 3e 20 |eds MAXI|NT.> .> |
|00000350| 54 68 75 73 3a 20 20 22 | 69 66 20 28 6a 2b 6b 20 |Thus: "|if (j+k |
|00000360| 3e 20 4d 41 58 49 4e 54 | 29 20 6f 76 65 72 66 6c |> MAXINT|) overfl|
|00000370| 6f 77 28 29 3b 22 20 62 | 75 74 20 74 68 65 20 6f |ow();" b|ut the o|
|00000380| 70 65 72 61 74 69 6f 6e | 20 69 73 20 75 6e 64 65 |peration| is unde|
|00000390| 66 69 6e 65 64 0a 3e 20 | 69 66 20 74 68 65 20 72 |fined.> |if the r|
|000003a0| 65 73 75 6c 74 20 6f 76 | 65 72 66 6c 6f 77 73 2c |esult ov|erflows,|
|000003b0| 20 73 6f 20 74 68 65 20 | 65 78 70 72 65 73 73 69 | so the |expressi|
|000003c0| 6f 6e 20 6e 65 65 64 73 | 20 72 65 77 72 69 74 69 |on needs| rewriti|
|000003d0| 6e 67 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 0a |ng to ma|ke sure.|
|000003e0| 3e 20 74 68 69 73 20 64 | 6f 65 73 6e 27 74 20 68 |> this d|oesn't h|
|000003f0| 61 70 70 65 6e 2e 20 54 | 68 65 20 72 65 73 75 6c |appen. T|he resul|
|00000400| 74 20 69 73 20 74 68 65 | 6e 20 22 69 66 20 28 6a |t is the|n "if (j|
|00000410| 3e 4d 41 58 49 4e 54 2d | 6b 29 20 6f 76 65 72 66 |>MAXINT-|k) overf|
|00000420| 6c 6f 77 28 29 3b 22 2e | 0a 3e 20 0a 3e 20 41 73 |low();".|.> .> As|
|00000430| 73 75 6d 69 6e 67 20 73 | 69 7a 65 6f 66 28 69 6e |suming s|izeof(in|
|00000440| 74 29 20 3d 3d 20 34 20 | 61 6e 64 20 69 2c 6a 2c |t) == 4 |and i,j,|
|00000450| 6b 20 61 72 65 20 61 6c | 6c 20 75 6e 73 69 67 6e |k are al|l unsign|
|00000460| 65 64 20 69 6e 74 73 20 | 74 68 65 6e 20 0a 3e 20 |ed ints |then .> |
|00000470| 0a 3e 20 23 64 65 66 69 | 6e 65 20 4d 41 58 49 4e |.> #defi|ne MAXIN|
|00000480| 54 20 30 78 46 46 46 46 | 46 46 46 46 0a 0a 57 68 |T 0xFFFF|FFFF..Wh|
|00000490| 79 20 6e 6f 74 20 23 69 | 6e 63 6c 75 64 65 20 3c |y not #i|nclude <|
|000004a0| 6c 69 6d 69 74 73 2e 68 | 3e 20 61 6e 64 20 75 73 |limits.h|> and us|
|000004b0| 65 20 55 49 4e 54 5f 4d | 41 58 3f 0a 20 0a 3e 20 |e UINT_M|AX?. .> |
|000004c0| 20 20 69 66 20 28 6a 3e | 4d 41 58 49 4e 54 2d 6b | if (j>|MAXINT-k|
|000004d0| 29 0a 3e 20 20 20 20 20 | 6f 76 65 72 66 6c 6f 77 |).> |overflow|
|000004e0| 28 29 3b 0a 3e 20 20 20 | 65 6c 73 65 0a 3e 20 20 |();.> |else.> |
|000004f0| 20 20 20 69 20 3d 20 6a | 2b 6b 3b 0a 3e 20 0a 3e | i = j|+k;.> .>|
|00000500| 20 48 6f 77 65 76 65 72 | 20 69 66 20 69 2c 6a 2c | However| if i,j,|
|00000510| 6b 20 61 72 65 20 73 69 | 67 6e 65 64 20 69 6e 74 |k are si|gned int|
|00000520| 27 73 20 74 68 65 6e 20 | 74 68 65 20 63 6f 64 65 |'s then |the code|
|00000530| 20 77 69 6c 6c 20 6c 6f | 6f 6b 20 73 6f 6d 65 74 | will lo|ok somet|
|00000540| 68 69 6e 67 20 6c 69 6b | 65 3a 0a 3e 20 0a 3e 20 |hing lik|e:.> .> |
|00000550| 23 64 65 66 69 6e 65 20 | 4d 41 58 49 4e 54 20 28 |#define |MAXINT (|
|00000560| 2b 32 31 34 37 34 38 33 | 36 34 37 29 0a 3e 20 23 |+2147483|647).> #|
|00000570| 64 65 66 69 6e 65 20 4d | 49 4e 49 4e 54 20 28 2d |define M|ININT (-|
|00000580| 32 31 34 37 34 38 33 36 | 34 38 29 0a 0a 54 68 65 |21474836|48)..The|
|00000590| 73 65 20 63 61 6e 20 62 | 65 20 72 65 70 6c 61 63 |se can b|e replac|
|000005a0| 65 64 20 77 69 74 68 20 | 49 4e 54 5f 4d 41 58 20 |ed with |INT_MAX |
|000005b0| 61 6e 64 20 49 4e 54 5f | 4d 49 4e 20 28 61 6c 73 |and INT_|MIN (als|
|000005c0| 6f 20 64 65 66 69 6e 65 | 64 20 69 6e 20 6c 69 6d |o define|d in lim|
|000005d0| 69 74 73 2e 68 29 2e 0a | 0a 3e 20 20 20 69 66 20 |its.h)..|.> if |
|000005e0| 28 69 20 3e 20 30 20 26 | 26 20 6a 20 3e 20 30 20 |(i > 0 &|& j > 0 |
|000005f0| 26 26 20 6a 3e 4d 41 58 | 49 4e 54 2d 6b 29 0a 3e |&& j>MAX|INT-k).>|
|00000600| 20 20 20 20 20 6f 76 65 | 72 66 6c 6f 77 28 29 3b | ove|rflow();|
|00000610| 0a 3e 20 20 20 65 6c 73 | 65 20 69 66 20 28 69 20 |.> els|e if (i |
|00000620| 3c 20 30 20 26 26 20 6a | 20 3c 20 30 20 26 26 20 |< 0 && j| < 0 && |
|00000630| 6a 3c 4d 49 4e 49 4e 54 | 2d 6b 29 0a 3e 20 20 20 |j<MININT|-k).> |
|00000640| 20 20 6f 76 65 72 66 6c | 6f 77 28 29 3b 0a 3e 20 | overfl|ow();.> |
|00000650| 20 20 65 6c 73 65 0a 3e | 20 20 20 20 20 69 20 3d | else.>| i =|
|00000660| 20 6a 2b 6b 3b 0a 0a 45 | 6d 61 69 6c 3a 20 64 61 | j+k;..E|mail: da|
|00000670| 72 72 65 6c 6c 2e 67 72 | 61 69 6e 67 65 72 40 75 |rrell.gr|ainger@u|
|00000680| 74 6f 72 6f 6e 74 6f 2e | 63 61 0a 0a |toronto.|ca.. |
+--------+-------------------------+-------------------------+--------+--------+